package edu.sctu.practice.class02.xuejiahua.assign03;

/**
 * Created by Administrator on 2015/10/26.
 */
public class Circle extends GeometricObject {

    public double area, perimeter, radius;


    public Circle(String color, double radius) {
        super(color);
        this.radius = radius;
    }

    public double findArea() {
        this.area = Math.PI * radius * radius;
        return area;
    }

    public double findPerimeter() {
        this.perimeter = 2 * Math.PI * radius;
        return perimeter;
    }
}
